package cn.xshi.file.dao;

import cn.xshi.file.form.AttachmentForm;
import cn.xshi.file.model.Attachment;
import java.util.List;
import java.util.Map;
/**
 * @Desc 附件管理
 * @Author 邓纯杰
 * @CreateTime 2012-12-12 12:12:12
 */
public interface AttachmentDao {

	/**
	 * 分页
	 * @param attachmentForm
	 * @return
	 */
	List<Attachment> getAttachmentListByCondition(AttachmentForm attachmentForm);

	/**
	* 查询对象
	* @param id
	* @return
	*/
	Attachment getAttachmentById(String id);

	/**
	* 添加
	* @param attachment
	* @return
	*/
	int addAttachment(Attachment attachment);

	/**
	 * 添加
	 * @param attachmentList
	 * @return
	 */
	int addBatchAttachment(List<Attachment> attachmentList);

	/**
	* 修改
	* @param attachment
	* @return
	*/
	int updateAttachment(Attachment attachment);

	/**
	* 删除
	* @param condition
	* @return
	*/
	int delAttachment(Map<String, Object> condition);

	/**
	 * 根据如编号数组批量查询集合
	 * @param condition
	 * @return
	 */
	List<Attachment> getAttachmentList(Map<String, Object> condition);
}
